<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:p="http://primefaces.org/ui"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:f="http://xmlns.jcp.org/jsf/core">
    <body>
        <h:form>  

            <p:fileUpload fileUploadListener="#{pessoaMB.handleFileUpload}"  
                          update="messages" auto="false" allowTypes="/(\.|\/)(gif|jpeg|png)$/"/>  

            <p:growl id="messages" showDetail="true"/> 


            <p:panelGrid columns="1" style="width: 100%;">
                <f:facet name="footer">
                    <p:commandButton action="${pessoaMB.testeSalvar()}" 
                                     id="salvar" value="Salvar" style="height:35px;">
                    </p:commandButton> 
                </f:facet>
            </p:panelGrid>
        </h:form>  
    </body>
</html>
